﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations
{
    public interface IHtmlPropertyCollection :
        IEnumerable<IHtmlProperty>, IEnumerator<IHtmlProperty>
    {
        /// <summary>
        /// 是否包含属性
        /// </summary>
        /// <returns></returns>
        bool Contains(string key);

        /// <summary>
        /// 添加属性
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        void Add(string key, string value);

        /// <summary>
        /// 根据index属性的获取
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        IHtmlProperty this[int index] { get;}

        /// <summary>
        /// 根据属性id获取属性
        /// </summary>
        /// <param name="propertyName"></param>
        /// <returns></returns>
        string this[string propertyName] { get;set;}
    }
}
